package com.example.hystrixDemo.config;/**
 * @Deacription TODO
 * @Author baohuajie
 * @Date 2020/12/14 10:35
 * @Version 1.0
 **/

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 *@Deacription TODO
 *@Author baohuajie
 *@Date 2020/12/14 10:35
 *@Version 1.0
 **/
@Configuration
public class MainConfig {

    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
}
